//
//  ZZYTAFetwork.h
//  Hand-held_kitchen
//
//  Created by 张张烨 on 16/1/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, ZZYResposeStyle) {
    LMTJSON,
    LMTXML,
    LMTData,
};

typedef NS_ENUM(NSUInteger, ZZYRequestStyle) {
    RequestJSON,
    RequestString,
    RequestDefault
};
@interface ZZYTAFetwork : NSObject
+ (void)getUrl:(NSString *)url
          body:(id)body
      response:(ZZYResposeStyle)style
requestHeadFile:(NSDictionary *)handFile
       success:(void (^)(NSURLSessionDataTask *task, id resposeObject))success
       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

+ (void)postUrlString:(NSString *)url
                 body:(id)body
             response:(ZZYResposeStyle)style
            bodyStyle:(ZZYRequestStyle)bodyStyle
      requestHeadFile:(NSDictionary *)headFile
              success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
              failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

@end
